﻿using System;
using System.Drawing;
using MUnit;

namespace Maze
{
    class TestBoard
    {
        SQ[,] squares = { { SQ.O, SQ.W } };
        Board board;

        [Setup]
        void Setup()
        {
            // This will be run once before each test method
            this.board = new Board(squares);
        }

        [Test]
        void GetProperty()
        {
            Verify.Equals(SQ.W, this.board[1, 0]);
        }

        [Test]
        void GetPropertyWithPoint()
        {
            Verify.Equals(SQ.W, this.board[new Point(1, 0)]);
        }

        [Test]
        void SetProperty()
        {
            this.board[0, 0] = SQ.C;
            Verify.Equals(SQ.C, this.board[0, 0]);
        }

        [Test]
        void Rows()
        {
            Verify.Equals(1, this.board.Rows);
        }

        [Test]
        void Columns()
        {
            Verify.Equals(2, this.board.Columns);
        }

        [TearDown]
        void TearDown()
        {
            // This will be run once after each test method
        }
    }
}
